#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "aboutdialog.h"
#include "cmegbizoedit.h"
#include "reszfeladat.h"
#include "ajanlat.h"
#include "ajanlatkikuld.h"
#include "szerzodeskezel.h"
#include "archivum.h"
#include "ajanlatletrehoz.h"
#include <QtSql>
#include <qfile.h>
#include <qtextstream.h>
#include <QTableView>
#include <ccommon.h>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();


private slots:
    void on_actionAbout_triggered();
    void on_actionExit_triggered();
    void on_actionMegb_z_k_list_ja_triggered();

    void on_actionR_szfeladatok_list_ja_triggered();

    void on_actionAj_nlat_ssze_ll_t_sa_triggered();

    void closeEvent(QCloseEvent *event);

    void on_actionSql_query_log_triggered();

    void on_actionAj_nlat_kik_ld_se_triggered();

    void on_actionSzerz_d_sek_kezel_se_triggered();

    void on_actionArchivum_triggered();

    void on_actionAj_nlat_l_trehoz_sa_triggered();

private:
    Ui::MainWindow *ui;
    void databaseopen();
    QSqlDatabase db;
    void writeSettings();
    void readSettings();
    QString pathStr;

};

#endif // MAINWINDOW_H
